<script setup>
import { RouterLink, RouterView } from "vue-router";
import { useRouter } from 'vue-router';

const router = useRouter()

function onClickLeft() {
    router.push('../login')
}
</script>

<template>
    <div class="box">
        <van-nav-bar title="注册" left-text="返回" left-arrow @click-left="onClickLeft" />
        <Router-view></Router-view>
    </div>
</template>